import axios from "axios";
// import router from "../router";
const request = axios.create({
    // timeout: 10000,
    // baseURL: 'http://121.89.205.189:3000/api',
    baseURL:'/api'
})
request.interceptors.request.use(req => {
    // @ts-ignore
    req.headers.token = localStorage.getItem('token') ?? ''
    return req
})

export default request